import request from '@/utils/request'

// 查询集水坑列表
export function listSump(query) {
  return request({
    url: '/pipemanage/sump/list',
    method: 'get',
    params: query
  })
}

// 查询集水坑详细
export function getSump(id) {
  return request({
    url: '/pipemanage/sump/getById/' + id,
    method: 'get'
  })
}

// 新增集水坑
export function addSump(data) {
  return request({
    url: '/pipemanage/sump/add',
    method: 'post',
    data: data
  })
}

// 修改集水坑
export function updateSump(data) {
  return request({
    url: '/pipemanage/sump/edit',
    method: 'put',
    data: data
  })
}

// 删除集水坑
export function delSump(id) {
  return request({
    url: '/pipemanage/sump/delete/' + id,
    method: 'delete'
  })
}
